<%-- 
    Document   : Signup.jsp
    Created on : Apr 28, 2011, 1:04:10 PM
    Author     : labib
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
   <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
   <%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld" %>
   <%@ page import="net.tanesha.recaptcha.ReCaptcha" %>
    <%@ page import="net.tanesha.recaptcha.ReCaptchaFactory" %>
   <link rel="stylesheet" href="css/jquery.ui.all.css">
	<script src="js/jquery-1.5.1.js"></script>
	<script src="js/jquery.ui.core.js"></script>
	<script src="js/jquery.ui.widget.js"></script>
	<script src="js/jquery.ui.datepicker.js"></script>
	<link rel="stylesheet" href="css/demos.css">
	<script>
	$(function() {
            
		$( "#datepicker" ).datepicker();
	});
	</script>     
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>File Upload</title>
    </head>
    <body>
        <logic:equal name="register" scope="application" value="true">
            <table  width="70%"><tr>
                    <td align="right">
                        <img src="images/jets_logo.gif" />
                    </td>
                    
                    <td>
       <html:form action="signup.do?OpType=register" enctype="multipart/form-data" onsubmit="return validateRegisterBeanForum(this);">
           <html:javascript formName="RegisterBeanForum" />
           <div align="left">
               
           </div>
           <div align="center">
           <table>
               
               <br>
               <tr>
          <td> <br>Enter userName </td> <td>   <html:text property="userName" /></td>    <html:errors property="userName" /></tr>
<tr><br>
   <td><br> Enter Password</td><td>     <html:password property="password"/></td> <html:errors property="password" /></tr>
<tr>
    <td><br>Enter   Email  </td>  <td>  <html:text property="email"/></td><html:errors property="email" />
<tr> <td><br>
        Enter  FirstName </td><td>  <html:text property="firstName"/></td><html:errors property="firstName" /></tr>
 
<tr>

    <td><br>Enter  LastName </td><td>   <html:text property="lastName"/></td><html:errors property="lastName" /></tr>
<tr>
    
    <td><br>Enter Birthday </td> <td>   <html:text property="birthday" styleId="datepicker"/></td><html:errors property="birthday" /></tr>
<tr>
    <td><br>Enter Street    </td><td>  <html:text property="street"/></td><html:errors property="street" /></tr>
<tr>
    <td><br>Enter City</td> <td>       <html:text property="city"/></td><html:errors property="city" /></tr>
<tr>
<td><br>Enter Contry   </td> <td>   <html:text property="country" /></td><html:errors property="country" /></tr>
<tr><td><br>
Upload Your Image</td><td>
	<html:file property="img"/></td></tr>
	
</table>      
          
    <%
          ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LdNesQSAAAAAGeKdZkYMO3CWPZDErPTOP6qneTL", "6LdNesQSAAAAAEXUT7A-rvpKCtdLTqZVEoSuDx8d", false);
          out.print(c.createRecaptchaHtml(null, null));
        %>
      <h1>  <html:errors property="invalidCap" /></h1>
         <html:submit value="register "/>
         </div>
	</html:form>

                    </td>
                    
                </tr></table>
        </logic:equal>
        <logic:equal name="register" scope="application" value="false"><br>
            <h2>Registration is Currently locked</h2><br>
        </logic:equal>
   
</html>
